package kr.hkit.powerjava.chapter13.Lab;

import java.awt.HeadlessException;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

class lab01 extends JFrame {

	public lab01() throws HeadlessException {
		setSize(600,150);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setTitle("MyFrame");
		
		JPanel panel = new JPanel();
		JPanel panela = new JPanel();
		JPanel panelb = new JPanel();
		
		JLabel label = new JLabel("자바피자에 오신것을 환영합니다. 피자의 종류를 선택하세요");
		panel.add(label);
		
		JButton p1 = new JButton("콤보피자");
		JButton p2 = new JButton("포테이토피자");
		JButton p3 = new JButton("불고기피자");
		
		panelb.add(p1);
		panelb.add(p2);
		panelb.add(p3);
		
		panel.add(panela);
		panel.add(panelb);
		
		add(panel);
		setVisible(true);
	}
}

public class MyFrameTest1{
	public static void main(String[] args) {
		lab01 labt = new lab01();
	}
}